<div class="alert alert-danger alert-dismissable" role="alert" style="display: none;">
								错误信息:
								<button class="close thisclose" type="button">&times;</button>
								<span class="error-mess"></span>
							</div>
<div class="table-r" STYLE="overflow: scroll;height: 500px" >
	<table class="table  table-hover  container-fluid ">
		<thead>
			<tr class="row">
				<th class=" col-xs-1">
				</th>
				<th class=" col-xs-1"><span class="labels"
					style="display: block;"></span></th>
				<th class=" col-xs-2 b">部门</th>
				<th class="col-xs-2 b">职位</th>
				<th class="col-xs-2 b">用户名</th>
				<th class="col-xs-2 b">电话号码</th>
				<th class=" col-xs-2 b">性别</th>
				<th class=" col-xs-2">E-mail</th>
			</tr>
		</thead>
		<tbody>
		 <#if users??>
				<#list users as user>
				<tr class="row">
					<td class=" col-xs-1"><span class="labels"><label>
						<#--<input name="id" type="checkbox" userId="${user.userId}"><i>✓</i></label></span>-->
								<#if checkboxs?? && checkboxs?size gt 0>
									<#list checkboxs as c >
										<#if c == user.userId>
											<span class="labels"><label>
									<input name="id" type="checkbox" userId="${user.userId}" class="onclickbox"
										   checked="checked"><i>✓</i></label></span>
											<#break>
										</#if>
                                <#if c_index == checkboxs?size-1>
										<span class="labels"><label>
									<input name="id" type="checkbox" userId="${user.userId}" class="onclickbox"
									><i>✓</i></label></span>
									</#if>
									</#list>
                        <#else>
									<span class="labels"><label>
						    <input name="id" type="checkbox" userId="${user.userId}"
								   class="onclickbox"><i>✓</i></label></span>
								</#if>
					</td>
					<td class=" col-xs-1"><span class="imgs center-block"> <img
							style="width: 24px; height: 24px;"
							class="profile-user-img img-responsive img-circle"
							src="${(user.imgPath)!''}">
					</span></td>
					<td class="col-xs-2">${user.deptName}</td>
					<td class=" col-xs-2">${user.name}</td>
					<td class="col-xs-2 na">${user.userName}</td>
					<td class="col-xs-2 na">${user.userTel}</td>
					<td class=" col-xs-2">男</td>
					<td class=" col-xs-2">${(user.eamil)!''}</td>
				</tr>
				</#list>
			</#if>
		</tbody>
	</table>
</div>
<#--<#include "modalpaging.ftl"/>-->

<script>
	$(function () {
		var checkbox = new Array();
		var notcheckbox = new Array();
		$(".onclickbox").click(function () {
			$("input[type='checkbox']:checked").each(function (index) {
				checkbox[index] = $(this).attr("userId");
			})
			$("input[type='checkbox']").not("input:checked").each(function (index) {
				notcheckbox[index] = $(this).attr("userId");
			})
			console.log("我被点击了" + checkbox);
			console.log("我被点击了" + notcheckbox);
			$.get("checkBox", {'checkbox[]': checkbox,'notcheckbox[]':notcheckbox}, function () {
				console.log("我来咯");
			})
		})
	})
</script>
